package com.jisu;


import com.jisu.mapper.UserMapper;
import jakarta.annotation.PostConstruct;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.lingnan.feign")
@MapperScan("com.jisu.mapper")

public class UserApplication {

    @Autowired
    private UserMapper userMapper;
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }

    @PostConstruct
    public void checkMapper() {
        System.out.println("UserMapper: " + userMapper);
    }

}